package com.ruoyi.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.service.JurisdictionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用于一些权限、人员等功能
 */
@RestController
@RequestMapping("/hotel/jurisdiction")
public class JurisdictionController extends BaseController {

    @Autowired
    JurisdictionService jurisdictionService;

    /**
     * 添加酒店时,获取该公司的运营人员及业务人员
     * @return
     */
    @GetMapping("/getPersonInfo")
    public AjaxResult getPersonInfo(){
        return success(jurisdictionService.getPersonInfo());
    }
}
